﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LSBLL;
using OralExamBLL;
using OralExamEntity;

namespace LSWeb.Areas.OralExam.Controllers
{
    public class HomeController : ControllerCommon<OEControllerFormat<OEControllerFormatBLL, OECommonNone>, OEControllerCheck, OECommonNone>
    {
        //
        // GET: /OralExam/Home/

        public ActionResult Index()
        {
            if (Member == null)
            {
                return Redirect(WebPageConfig.GetUrl("Login"));
            }
            else
            {
                if (Member.Type == LSEntity.MemberTypeEntity.Student)
                {
                    return Redirect(WebPageConfig.GetUrl("Student"));
                }
                return Redirect(WebPageConfig.GetUrl("Teacher"));
            }
            //return View(new OEIndex
            //                {
            //                    Test =
            //                        this.MemberGetByController() == null
            //                            ? "未登录"
            //                            : this.MemberGetByController().ToString()
            //                });
        }

    }
}
